package Service.Impl;

import Service.IDistinguishService;

public class DistinguishServiceImpl implements IDistinguishService {

    @Override
    public String distinguish(Object in) {
        if (in instanceof Integer) {
            return "Integer";
        } else if (in instanceof Character) {
            return "char";
        } else if (in instanceof Float) {
            return "Float";
        } else {
            return "Wrong";
        }
    }
}
